﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Logfiles.aspx.cs" Inherits="PPAP.Web.SearchReport.Logfiles" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register TagPrefix="cc1" Namespace="PPAP.WebControls" Assembly="PPAP.WebControls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../Common/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="Form1" runat="server">
    <div>
        <table width="800px" style="border-color: #2A48CE; border: 1px; border-style: solid;
            border-color: Gray; border-spacing: 0px;">
            <tr style="height: 32px;">
                <td style="font-weight: bold;" bgcolor="#D7D7D7" colspan="4">
                    Log</td>
            </tr>
            <tr>
                <td>
                    PPAR No.:
                </td>
                <td>
                    <asp:TextBox ID="txtPPARNo" runat="server"></asp:TextBox>
                </td>
                <td>
                    Part No.:
                </td>
                <td>
                    <cc1:PartNo ID="txtPartNo" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                    Start date:
                </td>
                <td>
                    <asp:TextBox ID="txtStart"  onclick="WdatePicker();" runat="server"></asp:TextBox>
                </td>
                <td>
                    End date: 
                </td>
                <td>
                    <asp:TextBox ID="txtEnd"  onclick="WdatePicker();" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    User:
                </td>
                <td>
                    <asp:TextBox ID="txtUser" runat="server"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="left" colspan="2">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;
                </td>
                <td align="right" style=" padding-right:30px;" >
                    <asp:Button ID="btnSubmit" CssClass="button" runat="server" Text="Search" OnClick="btnSubmit_Click" />
                &nbsp;&nbsp;
                    <asp:Button ID="btnExport" CssClass="button" runat="server" Text="Export" 
                        OnClick="btnExport_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:DataGrid ID="dgList" HeaderStyle-BackColor="#2E8AC5" HeaderStyle-Font-Bold="true"
            HeaderStyle-Height="32px" Width="100%" OnLoad="dgLoad" AutoGenerateColumns="False"
            runat="server">
            <Columns>
                <asp:BoundColumn DataField="rownum" HeaderText="No.">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="logdate" HeaderText="Date">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="users" HeaderText="User">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="pparno" HeaderText="PPAR No.">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="partno" HeaderText="Part No.">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
                <asp:BoundColumn DataField="action" HeaderText="Action">
                    <ItemStyle HorizontalAlign="Center"></ItemStyle>
                </asp:BoundColumn>
            </Columns>
            <HeaderStyle BackColor="#E7E8E8" Font-Bold="True" Height="32px"></HeaderStyle>
        </asp:DataGrid>
        <webdiyer:AspNetPager ID="AspNetPager2"  runat="server" Width="100%" CssClass="paginator"
                                ShowPageIndexBox="Always" 
            PageIndexBoxType="DropDownList" TextBeforePageIndexBox="goto"
                                HorizontalAlign="Center" PageSize="20" EnableTheming="true" 
                        AlwaysShow="True" FirstPageText="|&lt;"
                                LastPageText="&gt;|" NextPageText="&gt;" 
                        PrevPageText="&lt;" SubmitButtonText="Go"
                                TextAfterPageIndexBox="page" 
                        InvalidPageIndexErrorMessage="Page index is not effective numerical！" 
                        onpagechanged="AspNetPager2_PageChanged" 
                        PageIndexOutOfRangeErrorMessage="Page index beyond range" 
            BackColor="#E7E8E8" >
                            </webdiyer:AspNetPager>
    </div>
    </form>
</body>
</html>
